/*
 * Copyright 2008 Zoundry LLC, Inc.  All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package org.zoundry.gaedt.services.applications;

import java.util.Set;
import org.zoundry.gaedt.services.IZGaeService;

/**
 * Public interface of the applications service.
 */
public interface IZGaeApplicationsService extends IZGaeService
{
    /**
     * Adds an observer.
     *
     * @param aObserver
     */
    public void addObserver(IZGaeApplicationsServiceObserver aObserver);

    /**
     * Removes an observer.
     *
     * @param aObserver
     */
    public void removeObserver(IZGaeApplicationsServiceObserver aObserver);

    /**
     * Public accessor for getting the set of applications.
     */
    public Set<IZGaeApplication> getGoogleApplications();

    /**
     * Starts the given application in development/test mode.
     *
     * @param aApplication
     * @param mDebugMode
     */
    public void startApplication(IZGaeApplication aApplication, boolean mDebugMode);

    /**
     * Stops the given application.  If the application is not currently
     * running, this method does nothing.
     *
     * @param aApplication
     */
    public void stopApplication(IZGaeApplication aApplication);

    /**
     * Updates the application by deploying it to the Google App Engine.
     *
     * @param aApplication
     */
    public void updateApplication(IZGaeApplication aApplication);
}
